package com.myp.chariotmicro.order.config;

import com.alibaba.csp.sentinel.adapter.spring.webmvc_v6x.config.SentinelWebMvcConfig;
import com.myp.chariotmicro.model.config.sentinel.SentinelConfig; // 继承 model 模块的配置
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OrderSentinelConfig extends SentinelConfig {
    @Bean
    public SentinelWebMvcConfig orderSentinelWebMvcConfig() {
        SentinelWebMvcConfig config = super.sentinelWebMvcConfig();
        // 订单模块专属配置：关闭 URL 统一资源名
        config.setWebContextUnify(false);
        return config;
    }
}